package tau.dimes.web;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import tau.dimes.config.Configuration;

public class StartupContextListener implements ServletContextListener
{
	@Override
	public void contextDestroyed(ServletContextEvent event)
	{
		System.out.println("contextDestroyed");
	}

	@Override
	public void contextInitialized(ServletContextEvent event)
	{
		ServletContext context = event.getServletContext();
		Configuration.init(context);
		System.out.println("contextInitialized!");
	}
}
